package com.k2.gulimall.ware.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import com.baomidou.mybatisplus.extension.plugins.inner.PaginationInnerInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@MapperScan("com.k2.gulimall.ware.dao")
@EnableTransactionManagement
@Configuration
public class WareMyBatisConfig {
    @Bean
    public PaginationInterceptor PaginationInterceptor(){
        PaginationInterceptor PaginationInterceptor = new PaginationInterceptor();
        return PaginationInterceptor;
    }




}
